//
//  ONDayHeadTableViewCell.m
//  Volatix
//
//  Created by Nguyen Minh Duc on 6/2/14.
//  Copyright (c) 2014 Familly. All rights reserved.
//

#import "ONDayHeadTableViewCell.h"

@implementation ONDayHeadTableViewCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self) {
        // Initialization code
        
        NSArray* nib = [[NSBundle mainBundle] loadNibNamed:@"ONDayHeadTableViewCell" owner:self options:nil];
        self = [nib objectAtIndex:0];
        
        self.v1.layer.cornerRadius = 18;
        self.v1.clipsToBounds = YES;
        self.v1.layer.masksToBounds = YES;
    }
    return self;
}
- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)topCorner{
    self.v1.layer.cornerRadius = 18;
    self.v1.clipsToBounds = YES;
    self.v1.layer.masksToBounds = YES;

    self.v1.hidden = NO;
    self.v2.hidden = NO;

    self.v3.hidden = YES;
    self.v4.hidden = YES;
}

-(void)bottonCorner{
    self.v3.layer.cornerRadius = 18;
    self.v3.layer.masksToBounds = YES;
    self.v3.clipsToBounds = YES;
    
    self.v3.hidden = NO;
    self.v4.hidden = NO;

    self.v1.hidden = YES;
    self.v2.hidden = YES;
}

-(void)notCorner{
    self.v1.hidden = NO;
    self.v2.hidden = NO;
    self.v3.hidden = NO;
    self.v4.hidden = NO;


}
@end
